﻿@using FluentMvc.Test.Models
@model User
@{
    ViewBag.Title = "title";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
@using(Html.BeginForm("Register","Home",new{area=""}))
{
    @Html.ValidationSummary()
    <p>@Html.LabelFor(user => user.Username)</p>
    <p>@Html.EditorFor(user => user.Username)</p>
    <p>@Html.LabelFor(user=>user.Password)</p>
    <p>@Html.TextBoxFor(user=>user.Password)</p>
    <p>@Html.LabelFor(user => user.Profile.FirstName)</p>
    <p>@Html.TextBoxFor(user => user.Profile.FirstName)</p>
    <p>@Html.LabelFor(user => user.Profile.LastName)</p>
    <p>@Html.TextBoxFor(user => user.Profile.LastName)</p>
    <p>@Html.LabelFor(user => user.Profile.Age)</p>
    <p>@Html.TextBoxFor(user => user.Profile.Age)</p>
    <p>@Html.LabelFor(user => user.Profile.Email)</p>
    <p>@Html.TextBoxFor(user => user.Profile.Email)</p>
    <p>@Html.LabelFor(user => user.Profile.Website)</p>
    <p>@Html.TextBoxFor(user => user.Profile.Website)</p>
    <p>@Html.LabelFor(user => user.Profile.BirthDate)</p>
    <p>@Html.TextBoxFor(user => user.Profile.BirthDate)</p>
    <p>@Html.CheckBoxFor(user => user.LicenseAgreements)@Html.LabelFor(user=>user.LicenseAgreements)</p>
    <input type="submit" value="Register" />
}